package com.sodaopen.study.service.impl;

import com.sodaopen.study.entity.Stage;
import com.sodaopen.study.mapper.StageMapper;
import com.sodaopen.study.service.StageService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StageServiceImpl implements StageService {

    @Autowired
    private StageMapper stageMapper;

    @Override
    public List<Stage> findAll() {
        return stageMapper.selectAll();
    }

	@Override
	public Stage findById(Integer id) {
		return stageMapper.selectById(id);
	}
}
